-
Notifications
You must be signed in to change notification settings - Fork 2k
feat: #864 support streaming nested tool events in Agent.as_tool #1057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
5a0ce3a
to
dcfaf3f
Compare
@rm-openai i’ve resolved the merge conflict in |
looking forward to this new feature |
Action isn't published yet, so gotta do this
31af63e
to
243462e
Compare
When I test on my project, in the above codes in agent.py, the parent_queue will be None and the sub_run event will not be streaming, I manually init it as:
It is right? |
hey @yxh-y the queue is only attached when the outer‑most run itself is started in streaming mode. In other words, Runner.run_streamed(…) sets If you invoke the outer agent with the non‑streaming So, rather than injecting your own
this ensures that tl;dr, if you start the outer run with run_streamed, the queue is set up automatically (no manual queue needed), and you’ll see the child events immediately. |
stream_inner_events
flag to allow sub-agent tool call visibilityRunner.run_streamed
for streaming inner agentsResolves #864